# -*- makefile -*-
# Makefile for Microsoft Windows with Microsoft Visual C++ 5.0 or higher compiler


!IFNDEF GENERATE_DLL
GENERATE_DLL=0
!ENDIF

!IFNDEF UNICODE_SUPPORT
UNICODE_SUPPORT=0
!ENDIF

!IFNDEF SUPPORT_DATA_ENCRYPTION
SUPPORT_DATA_ENCRYPTION=0
!ENDIF

!IFNDEF LARGE_DATABASE_SUPPORT
LARGE_DATABASE_SUPPORT=0
!ENDIF

!IFNDEF DEBUG
DEBUG=1
!ENDIF

!IFNDEF STATIC
STATIC=1
!ENDIF


ZLIB_LIB=\zlib\zlib.lib
ZLIB_INCLUDE=\zlib

OBJS = class.obj compiler.obj database.obj xml.obj replicator.obj hashtab.obj file.obj sync.obj \
	symtab.obj btree.obj cursor.obj query.obj pagepool.obj \
	wwwapi.obj w32sock.obj blob.obj container.obj rtree.obj exception.obj localcli.obj server.obj session.obj

CLI_OBJS = cli.obj w32sock.obj repsock.obj

INCS = gigabase.h stdtp.h class.h database.h cursor.h selection.h reference.h wwwapi.h array.h \
	file.h hashtab.h btree.h rtree.h sync.h query.h datetime.h pagepool.h blob.h container.h rectangle.h timeseries.h config.h confdefs.h exception.h


GB_LIB = gigabase.lib
CLI_LIB = cli.lib

GB_DLL = gigabase.dll
CLI_DLL = cli.dll

EXES = subsql.exe cgistub.exe forcerecovery.exe

!IF $(UNICODE_SUPPORT)
EXAMPLES = testperf.exe testpar.exe testindex.exe testidx2.exe teststd.exe clitest.exe clitest2.exe localclitest.exe testalter.exe testsort.exe testbatch.exe testtimeseries.exe testsession.exe testtl.exe
!ELSE
EXAMPLES = guess.exe guess_std.exe guess2.exe testdb.exe testleak.exe testjoin.exe testddl.exe testperf.exe testpar.exe testindex.exe teststd.exe testperf2.exe testsync.exe testiref.exe testtrav.exe testidx.exe testidx2.exe bugdb.exe clidb.exe clitest.exe clitest2.exe localclitest.exe testalter.exe testblob.exe testraw.exe testspat.exe testreplic.exe testsort.exe testbatch.exe testinverse.exe testtimeseries.exe testsession.exe testtl.exe sdb.exe
!ENDIF

CC = cl
# !!! DEFS macro is deprecated - edit config.h header file instead
DEFS =


!IF $(UNICODE_SUPPORT)
DEFS = $(DEFS) -DUNICODE
!ENDIF

!IF $(SUPPORT_DATA_ENCRYPTION)
DEFS = $(DEFS) -DSUPPORT_DATA_ENCRYPTION
!ENDIF

!IF $(LARGE_DATABASE_SUPPORT)
DEFS = $(DEFS) -DLARGE_DATABASE_SUPPORT
!ENDIF

!IF $(DEBUG)
DEFS = $(DEFS) -D_DEBUG 
CFLAGS = -c  -I. -nologo -Od -Zi -W3 -EHsc $(CODE_MODEL) $(DEFS)
!ELSE
CFLAGS = -c  -I. -nologo -Ox -Zi -W3 -EHsc $(CODE_MODEL) $(DEFS)
!ENDIF

!IF $(DEBUG)
DLLFLAGS = -LDd -Zi -nologo
!ELSE
DLLFLAGS = -LD -nologo
!ENDIF

LD = $(CC)
LDFLAGS = $(CODE_MODEL) -Zi -nologo

AR = lib
ARFLAGS =

STDLIBS = advapi32.lib

SOCKLIBS = wsock32.lib

!IF $(SUPPORT_DATA_ENCRYPTION)
STDLIBS = $(STDLIBS) crypt/cryptgb.lib ole32.lib advapi32.lib
!ENDIF

!IF $(STATIC)
CODE_MODEL=-MT
!ELSE
CODE_MODEL=-MD
!ENDIF

!IF $(DEBUG)
CODE_MODEL=$(CODE_MODEL)d
!ENDIF

!IF $(GENERATE_DLL)
all: $(GB_LIB) $(CLI_LIB) $(GB_DLL) $(CLI_DLL) $(EXES) $(EXAMPLES)
DEFS = $(DEFS) -DGIGABASE_DLL
CFLAGS=$(CFLAGS)
!ELSE
all: $(GB_LIB) $(CLI_LIB) $(EXES) $(EXAMPLES)
!ENDIF

class.obj: class.cpp compiler.h compiler.d symtab.h $(INCS)
	$(CC) $(CFLAGS) class.cpp

compiler.obj: compiler.cpp compiler.h compiler.d symtab.h $(INCS)
	$(CC) $(CFLAGS) compiler.cpp

sync.obj: sync.cpp sync.h stdtp.h
	$(CC) $(CFLAGS) sync.cpp

query.obj: query.cpp compiler.h compiler.d symtab.h $(INCS)
	$(CC) $(CFLAGS) query.cpp

database.obj: database.cpp compiler.h compiler.d symtab.h $(INCS)
	$(CC) $(CFLAGS) database.cpp

xml.obj: xml.cpp compiler.h compiler.d symtab.h $(INCS)
	$(CC) $(CFLAGS) xml.cpp

localcli.obj: localcli.cpp compiler.h compiler.d symtab.h localcli.h $(INCS)
	$(CC) $(CFLAGS) localcli.cpp

replicator.obj: replicator.cpp replicator.h sockio.h $(INCS)
	$(CC) $(CFLAGS) replicator.cpp

cursor.obj: cursor.cpp compiler.h compiler.d $(INCS)
	$(CC) $(CFLAGS) cursor.cpp

hashtab.obj: hashtab.cpp $(INCS)
	$(CC) $(CFLAGS) hashtab.cpp

pagepool.obj: pagepool.cpp $(INCS)
	$(CC) $(CFLAGS) pagepool.cpp

file.obj: file.cpp $(INCS)
	$(CC) $(CFLAGS) file.cpp

symtab.obj: symtab.cpp symtab.h $(INCS)
	$(CC) $(CFLAGS) symtab.cpp

btree.obj: btree.cpp $(INCS)
	$(CC) $(CFLAGS) btree.cpp

rtree.obj: rtree.cpp $(INCS)
	$(CC) $(CFLAGS) rtree.cpp

exception.obj: exception.cpp $(INCS)
	$(CC) $(CFLAGS) exception.cpp

blob.obj: blob.cpp $(INCS)
	$(CC) $(CFLAGS) blob.cpp

container.obj: container.cpp $(INCS)
	$(CC) $(CFLAGS) container.cpp

wwwapi.obj: wwwapi.cpp wwwapi.h stdtp.h sync.h sockio.h
	$(CC) $(CFLAGS) wwwapi.cpp

w32sock.obj: w32sock.cpp w32sock.h sockio.h stdtp.h
	$(CC) $(CFLAGS) w32sock.cpp

repsock.obj: repsock.cpp repsock.h sockio.h stdtp.h sync.h
	$(CC) $(CFLAGS) repsock.cpp

cli.obj: cli.cpp cli.h cliproto.h repsock.h sockio.h stdtp.h sync.h
	$(CC) $(CFLAGS) cli.cpp


gigabase.lib: $(OBJS)
	$(AR) $(ARFLAGS) /OUT:gigabase.lib $(OBJS)

gigabase.dll: $(OBJS)
	$(CC) $(DLLFLAGS) /Fegigabase.dll $(OBJS) $(STDLIBS) $(SOCKLIBS)

cli.lib: $(CLI_OBJS)
	$(AR) $(ARFLAGS) /OUT:cli.lib $(CLI_OBJS)

cli.dll: $(CLI_OBJS)
	$(CC) $(DLLFLAGS) /Fecli.dll $(CLI_OBJS) $(STDLIBS) $(SOCKLIBS)

subsql.obj: subsql.cpp compiler.h server.h compiler.d subsql.h symtab.h $(INCS)
	$(CC) $(CFLAGS) subsql.cpp

server.obj: server.cpp compiler.h server.h compiler.d subsql.h symtab.h cliproto.h $(INCS)
	$(CC) $(CFLAGS) server.cpp

session.obj: session.cpp session.h cliproto.h $(INCS)
	$(CC) $(CFLAGS) session.cpp

subsql.exe: subsql.obj $(GB_LIB)
	$(LD) $(LDFLAGS) subsql.obj $(GB_LIB) $(STDLIBS) $(SOCKLIBS)

clitest.obj: clitest.c cli.h
	$(CC) $(CFLAGS) clitest.c

clitest.exe: clitest.obj $(CLI_LIB)
	$(LD) $(LDFLAGS) clitest.obj $(CLI_LIB) $(STDLIBS) $(SOCKLIBS)

clitest2.obj: clitest2.c cli.h
	$(CC) $(CFLAGS) clitest2.c

clitest2.exe: clitest2.obj $(GB_LIB)
	$(LD) $(LDFLAGS) /Feclitest2.exe clitest2.obj $(GB_LIB) $(STDLIBS)

testalter.obj: testalter.c cli.h
	$(CC) $(CFLAGS) testalter.c

testalter.exe: testalter.obj $(GB_LIB)
	$(LD) $(LDFLAGS) /Fetestalter.exe testalter.obj $(GB_LIB) $(STDLIBS)


localclitest.exe: clitest.obj $(GB_LIB)
	$(LD) $(LDFLAGS) /Felocalclitest.exe clitest.obj $(GB_LIB) $(STDLIBS)


testsort.obj: testsort.cpp $(INCS)
	$(CC) $(CFLAGS) testsort.cpp

testsort.exe: testsort.obj  $(GB_LIB)
	$(LD) $(LDFLAGS) testsort.obj $(GB_LIB) $(STDLIBS)

bugdb.obj: bugdb.cpp bugdb.h $(INCS)
	$(CC) $(CFLAGS) bugdb.cpp

bugdb.exe: bugdb.obj  $(GB_LIB)
	$(LD) $(LDFLAGS) bugdb.obj $(GB_LIB) $(STDLIBS) $(SOCKLIBS)

clidb.obj: clidb.cpp clidb.h $(INCS)
	$(CC) $(CFLAGS) clidb.cpp

clidb.exe: clidb.obj  $(GB_LIB)
	$(LD) $(LDFLAGS) clidb.obj $(GB_LIB) $(STDLIBS) $(SOCKLIBS)


cgistub.obj: cgistub.cpp stdtp.h sockio.h
	$(CC) $(CFLAGS) cgistub.cpp

cgistub.exe: cgistub.obj
	$(LD) $(LDFLAGS) cgistub.obj $(GB_LIB) $(STDLIBS) $(SOCKLIBS)


forcerecovery.obj: forcerecovery.cpp database.h
	$(CC) $(CFLAGS) forcerecovery.cpp 

forcerecovery.exe: forcerecovery.obj
	$(LD) $(LDFLAGS) forcerecovery.obj


guess.obj: guess.cpp $(INCS)
	$(CC) $(CFLAGS) guess.cpp

guess.exe: guess.obj $(GB_LIB)
	$(LD) $(LDFLAGS) guess.obj $(GB_LIB) $(STDLIBS)

guess_std.obj: guess_std.cpp $(INCS)
	$(CC) $(CFLAGS) guess_std.cpp

guess_std.exe: guess_std.obj $(GB_LIB)
	$(LD) $(LDFLAGS) guess_std.obj $(GB_LIB) $(STDLIBS)

guess2.obj: guess2.cpp $(INCS)
	$(CC) $(CFLAGS) guess2.cpp

guess2.exe: guess2.obj $(GB_LIB)
	$(LD) $(LDFLAGS) guess2.obj $(GB_LIB) $(STDLIBS)

testdb.obj: testdb.cpp $(INCS)
	$(CC) $(CFLAGS) testdb.cpp

testdb.exe: testdb.obj $(GB_LIB)
	$(LD) $(LDFLAGS) testdb.obj $(GB_LIB) $(STDLIBS)

testraw.obj: testraw.cpp $(INCS)
	$(CC) $(CFLAGS) testraw.cpp

testraw.exe: testraw.obj $(GB_LIB)
	$(LD) $(LDFLAGS) testraw.obj $(GB_LIB) $(STDLIBS)

testleak.obj: testleak.cpp $(INCS)
	$(CC) $(CFLAGS) testleak.cpp

testleak.exe: testleak.obj $(GB_LIB)
	$(LD) $(LDFLAGS) testleak.obj $(GB_LIB) $(STDLIBS)

testjoin.obj: testjoin.cpp $(INCS)
	$(CC) $(CFLAGS) testjoin.cpp

testjoin.exe: testjoin.obj $(GB_LIB)
	$(LD) $(LDFLAGS) testjoin.obj $(GB_LIB) $(STDLIBS)

testddl.obj: testddl.cpp $(INCS)
	$(CC) $(CFLAGS) testddl.cpp

testddl.exe: testddl.obj $(GB_LIB)
	$(LD) $(LDFLAGS) testddl.obj $(GB_LIB) $(STDLIBS)

testblob.obj: testblob.cpp $(INCS)
	$(CC) $(CFLAGS) testblob.cpp

testblob.exe: testblob.obj $(GB_LIB)
	$(LD) $(LDFLAGS) testblob.obj $(GB_LIB) $(STDLIBS)

testperf.obj: testperf.cpp $(INCS)
	$(CC) $(CFLAGS) testperf.cpp

testperf.exe: testperf.obj $(GB_LIB)
	$(LD) $(LDFLAGS) testperf.obj $(GB_LIB) $(STDLIBS)

testtl.obj: testtl.cpp $(INCS)
	$(CC) $(CFLAGS) testtl.cpp

testtl.exe: testtl.obj $(GB_LIB)
	$(LD) $(LDFLAGS) testtl.obj $(GB_LIB) $(STDLIBS)

testsession.obj: testsession.cpp $(INCS)
	$(CC) $(CFLAGS) testsession.cpp

testsession.exe: testsession.obj $(GB_LIB)
	$(LD) $(LDFLAGS) testsession.obj $(GB_LIB) $(STDLIBS) $(SOCKLIBS)

testtimeseries.obj: testtimeseries.cpp $(INCS)
	$(CC) $(CFLAGS) testtimeseries.cpp

testtimeseries.exe: testtimeseries.obj $(GB_LIB)
	$(LD) $(LDFLAGS) testtimeseries.obj $(GB_LIB) $(STDLIBS)

stockdb.obj: stockdb/stockdb.cpp stockdb/stockdb.h $(INCS)
	$(CC) $(CFLAGS) stockdb/stockdb.cpp

main.obj: stockdb/main.cpp stockdb/stockdb.h $(INCS)
	$(CC) $(CFLAGS) stockdb/main.cpp

providers.obj: stockdb/providers.cpp stockdb/stockdb.h $(INCS)
	$(CC) $(CFLAGS) stockdb/providers.cpp

sdb.exe: stockdb.obj main.obj providers.obj $(GB_LIB)
	$(LD) $(LDFLAGS) -Fesdb.exe stockdb.obj main.obj providers.obj $(GB_LIB) $(STDLIBS) $(SOCKLIBS)

testpar.obj: testpar.cpp $(INCS)
	$(CC) $(CFLAGS) testpar.cpp

testpar.exe: testpar.obj $(GB_LIB)
	$(LD) $(LDFLAGS) testpar.obj $(GB_LIB) $(STDLIBS)

testindex.obj: testindex.cpp $(INCS)
	$(CC) $(CFLAGS) testindex.cpp

testindex.exe: testindex.obj $(GB_LIB)
	$(LD) $(LDFLAGS) testindex.obj $(GB_LIB) $(STDLIBS)

testbatch.obj: testbatch.cpp $(INCS)
	$(CC) $(CFLAGS) testbatch.cpp

testbatch.exe: testbatch.obj $(GB_LIB)
	$(LD) $(LDFLAGS) testbatch.obj $(GB_LIB) $(STDLIBS)

testinverse.obj: testinverse.cpp $(INCS)
	$(CC) $(CFLAGS) testinverse.cpp

testinverse.exe: testinverse.obj $(GB_LIB)
	$(LD) $(LDFLAGS) testinverse.obj $(GB_LIB) $(STDLIBS)

testspat.obj: testspat.cpp $(INCS)
	$(CC) $(CFLAGS) testspat.cpp

testspat.exe: testspat.obj $(GB_LIB)
	$(LD) $(LDFLAGS) testspat.obj $(GB_LIB) $(STDLIBS)

testreplic.obj: testreplic.cpp replicator.h $(INCS)
	$(CC) $(CFLAGS) testreplic.cpp

testreplic.exe: testreplic.obj $(GB_LIB)
	$(LD) $(LDFLAGS) testreplic.obj $(GB_LIB) $(STDLIBS) $(SOCKLIBS)

teststd.obj: teststd.cpp $(INCS)
	$(CC) $(CFLAGS) teststd.cpp

teststd.exe: teststd.obj $(GB_LIB)
	$(LD) $(LDFLAGS) teststd.obj $(GB_LIB) $(STDLIBS)

testinc.obj: testinc.cpp $(INCS)
	$(CC) $(CFLAGS) testinc.cpp

testinc.exe: testinc.obj $(GB_LIB)
	$(LD) $(LDFLAGS) testinc.obj $(GB_LIB) $(STDLIBS)

testperf2.obj: testperf2.cpp $(INCS)
	$(CC) $(CFLAGS) testperf2.cpp

testperf2.exe: testperf2.obj $(GB_LIB)
	$(LD) $(LDFLAGS) testperf2.obj $(GB_LIB) $(STDLIBS)

testidx.obj: testidx.cpp $(INCS)
	$(CC) $(CFLAGS) testidx.cpp

testidx.exe: testidx.obj $(GB_LIB)
	$(LD) $(LDFLAGS) testidx.obj $(GB_LIB) $(STDLIBS)

testidx2.obj: testidx2.cpp $(INCS)
	$(CC) $(CFLAGS) testidx2.cpp

testidx2.exe: testidx2.obj $(GB_LIB)
	$(LD) $(LDFLAGS) testidx2.obj $(GB_LIB) $(STDLIBS)

testsync.obj: testsync.cpp $(INCS)
	$(CC) $(CFLAGS) testsync.cpp

testsync.exe: testsync.obj $(GB_LIB)
	$(LD) $(LDFLAGS) testsync.obj $(GB_LIB) $(STDLIBS)

testiref.obj: testiref.cpp $(INCS)
	$(CC) $(CFLAGS) testiref.cpp

testiref.exe: testiref.obj $(GB_LIB)
	$(LD) $(LDFLAGS) testiref.obj $(GB_LIB) $(STDLIBS)

testtrav.obj: testtrav.cpp $(INCS)
	$(CC) $(CFLAGS) testtrav.cpp

testtrav.exe: testtrav.obj $(GB_LIB)
	$(LD) $(LDFLAGS) testtrav.obj $(GB_LIB) $(STDLIBS)

compressdb.obj: compressdb.cpp $(INCS)
	$(CC) $(CFLAGS)  -I$(ZLIB_INCLUDE) compressdb.cpp 

compressdb.exe: compressdb.obj
	$(LD) $(LDFLAGS) compressdb.obj $(ZLIB_LIB)

testblobzip.obj: testblob.cpp $(INCS)
	$(CC) $(CFLAGS) /Fotestblobzip.obj -I$(ZLIB_INCLUDE) -DUSE_ZLIB testblob.cpp

zipfile.obj: zipfile.cpp $(INCS)
	$(CC) $(CFLAGS)  -I$(ZLIB_INCLUDE) zipfile.cpp 

testblobzip.exe: testblobzip.obj zipfile.obj $(GB_LIB)
	$(LD) $(LDFLAGS) testblobzip.obj zipfile.obj $(GB_LIB) $(ZLIB_LIB) $(STDLIBS)

cleanobj:
	-del *.odb,*.exp,*.obj,*.pch,*.pdb,*.ilk,*.ncb,*.opt
	-del *.manifest
	-del *.class,javacli\*~,javacli\*.class,jnicli\*.class,javacli\*.obj
	-del javacli\*.lib,javacli\*.pdb,javacli\*.ilk,javacli\*.exp
	-del jnicli\*.lib,jnicli\*.pdb,jnicli\*.ilk,jnicli\*.exp
	-del /AH gigabase.suo
	-del crypt\*.obj,crypt\*.lib,crypt\*.pdb
	-rd /s/q cli\Debug
	-rd /s/q SubSQLPrj\Debug
	-rd /s/q Debug
	-rd /s/q cli\Release
	-rd /s/q SubSQLPrj\Release
	-rd /s/q Release
	-rd /s/q x64
	-rd /s/q CLI\x64
	-rd /s/q SubSQLPrj\x64
	-rd /s/q "cli\Debug DLL"
	-rd /s/q "SubSQLPrj\Debug DLL"
	-rd /s/q "Debug DLL"
	-rd /s/q "cli\Release DLL"
	-rd /s/q "SubSQLPrj\Release DLL"
	-rd /s/q "Release DLL"

cleandbs:
	-del *.dbs,*.log

clean: cleanobj cleandbs
	-del *~,*.lib,*.dll,*.exe,*.manifest

java: javacli.jar jnicli.jar CliTest.class TestIndex.class jnicli.dll JniTestIndex.class JniTestRelations.class

jnicli.obj: jnicli\jnicli.cpp
	$(CC) $(CFLAGS) -I"$(JAVA_HOME)\include" -I"$(JAVA_HOME)\include\win32" -I. jnicli\jnicli.cpp

jnicli.dll: jnicli.obj gigabase.lib
	$(LD) $(DLLFLAGS) jnicli.obj gigabase.lib "$(JAVA_HOME)\lib\jvm.lib"

javacli.jar: javacli\*.java
	javac -g javacli\*.java
	jar cvf javacli.jar javacli/*.class
	javadoc -d javacli/docs -public javacli\*.java

jnicli.jar: jnicli\*.java
	javac -g jnicli\*.java
	jar cvf jnicli.jar jnicli/*.class
	javadoc -d jnicli/docs -public jnicli\*.java

CliTest.class: CliTest.java javacli.jar
	javac -classpath .;javacli.jar CliTest.java

TestIndex.class: TestIndex.java javacli.jar
	javac -classpath .;javacli.jar TestIndex.java

JniTestIndex.class: JniTestIndex.java jnicli.jar
	javac -classpath .;jnicli.jar JniTestIndex.java

JniTestRelations.class: JniTestRelations.java jnicli.jar
	javac -classpath .;jnicli.jar JniTestRelations.java

csharp: csharpcli.dll CSharpCliTest.exe

csharpcli.dll: csharpcli\*.cs
	csc /debug /doc:csharpcli\CSharpCLI.xml /t:library /out:csharpcli.dll csharpcli\*.cs

CSharpCliTest.exe: CliTest.cs csharpcli.dll
	csc /debug /reference:csharpcli.dll /out:CSharpCliTest.exe CliTest.cs

SymbianCarbide:
	-mkdir Symbian\Carbide\workspace\GigaBASE\src
	-mkdir Symbian\Carbide\workspace\GigaBASE\inc
	copy /y blob.cpp Symbian\Carbide\workspace\GigaBASE\src
	copy /y btree.cpp Symbian\Carbide\workspace\GigaBASE\src
	copy /y class.cpp Symbian\Carbide\workspace\GigaBASE\src
	copy /y compiler.cpp Symbian\Carbide\workspace\GigaBASE\src
	copy /y container.cpp Symbian\Carbide\workspace\GigaBASE\src
	copy /y cursor.cpp Symbian\Carbide\workspace\GigaBASE\src
	copy /y database.cpp Symbian\Carbide\workspace\GigaBASE\src
	copy /y exception.cpp Symbian\Carbide\workspace\GigaBASE\src
	copy /y file.cpp Symbian\Carbide\workspace\GigaBASE\src
	copy /y hashtab.cpp Symbian\Carbide\workspace\GigaBASE\src
	copy /y pagepool.cpp Symbian\Carbide\workspace\GigaBASE\src
	copy /y query.cpp Symbian\Carbide\workspace\GigaBASE\src
	copy /y rtree.cpp Symbian\Carbide\workspace\GigaBASE\src
	copy /y symtab.cpp Symbian\Carbide\workspace\GigaBASE\src
	copy /y sync.cpp Symbian\Carbide\workspace\GigaBASE\src
	copy /y xml.cpp Symbian\Carbide\workspace\GigaBASE\src
	copy /y array.h Symbian\Carbide\workspace\GigaBASE\inc
	copy /y blob.h Symbian\Carbide\workspace\GigaBASE\inc
	copy /y btree.h Symbian\Carbide\workspace\GigaBASE\inc
	copy /y class.h Symbian\Carbide\workspace\GigaBASE\inc
	copy /y compiler.d Symbian\Carbide\workspace\GigaBASE\inc
	copy /y compiler.h Symbian\Carbide\workspace\GigaBASE\inc
	copy /y confdefs.h Symbian\Carbide\workspace\GigaBASE\inc
	copy /y config.h Symbian\Carbide\workspace\GigaBASE\inc
	copy /y container.h Symbian\Carbide\workspace\GigaBASE\inc
	copy /y cursor.h Symbian\Carbide\workspace\GigaBASE\inc
	copy /y database.h Symbian\Carbide\workspace\GigaBASE\inc
	copy /y date.h Symbian\Carbide\workspace\GigaBASE\inc
	copy /y datetime.h Symbian\Carbide\workspace\GigaBASE\inc
	copy /y exception.h Symbian\Carbide\workspace\GigaBASE\inc
	copy /y file.h Symbian\Carbide\workspace\GigaBASE\inc
	copy /y gigabase.h Symbian\Carbide\workspace\GigaBASE\inc
	copy /y hashtab.h Symbian\Carbide\workspace\GigaBASE\inc
	copy /y localcli.h Symbian\Carbide\workspace\GigaBASE\inc
	copy /y pagepool.h Symbian\Carbide\workspace\GigaBASE\inc
	copy /y query.h Symbian\Carbide\workspace\GigaBASE\inc
	copy /y rectangle.h Symbian\Carbide\workspace\GigaBASE\inc
	copy /y reference.h Symbian\Carbide\workspace\GigaBASE\inc
	copy /y replicator.h Symbian\Carbide\workspace\GigaBASE\inc
	copy /y repsock.h Symbian\Carbide\workspace\GigaBASE\inc
	copy /y rtree.h Symbian\Carbide\workspace\GigaBASE\inc
	copy /y selection.h Symbian\Carbide\workspace\GigaBASE\inc
	copy /y session.h Symbian\Carbide\workspace\GigaBASE\inc
	copy /y set.h Symbian\Carbide\workspace\GigaBASE\inc
	copy /y stdtp.h Symbian\Carbide\workspace\GigaBASE\inc
	copy /y symtab.h Symbian\Carbide\workspace\GigaBASE\inc
	copy /y sync.h Symbian\Carbide\workspace\GigaBASE\inc
	copy /y timeseries.h Symbian\Carbide\workspace\GigaBASE\inc
	-del ..\gb-symbian.zip
	zip.exe -r ..\gb-symbian.zip Symbian

zip: clean SymbianCarbide
	cd ..
	-del gigabase.zip
	zip.exe -r gigabase.zip gigabase

copyzip: zip
	copy gigabase.zip d:

doxygen:
	doxygen doxygen.cfg
